package com.zd.service.impl;

import com.zd.mapper.AdministrativeDistrictMapper;
import com.zd.model.AdministrativeDistrict;
import com.zd.service.IAdministrativeDistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdministrativeDistrictServiceImpl implements IAdministrativeDistrictService {

    @Autowired
    AdministrativeDistrictMapper administrativeDistrictMapper;

    @Override
    public List<AdministrativeDistrict> selectAdministrativeDistrictInfo() {
        return administrativeDistrictMapper.selectAdministrativeDistrictInfo();
    }

    @Override
    public AdministrativeDistrict selectByPrimaryKey(int id) {
        return administrativeDistrictMapper.selectByPrimaryKey(Long.valueOf(id));
    }
}
